package controllers

import (
	"github.com/beego/beego/v2/server/web"
	"login/websocket"
)

type WebSocketController struct {
	web.Controller
}

// HandleWebSocket 处理 WebSocket 连接，调用 websocket 包里的 HandleWebSocket
func (c *WebSocketController) HandleWebSocket() {
	websocket.HandleWebSocket(c.Ctx.ResponseWriter, c.Ctx.Request)
}
